package co.yixiang.modules.distributor.service;

import co.yixiang.common.service.BaseService;
import co.yixiang.modules.distributor.domain.DistributorPrice;
import co.yixiang.modules.distributor.service.dto.DistributorPriceQueryCriteria;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface DistributorPriceService extends BaseService<DistributorPrice> {


    List<DistributorPrice> queryByDistributorIdAndProductId(String distributorId, Long productId);

    Map<String,Object> queryDistributorPricesByDisId(String id, Pageable pageable);


    Map<Long, List<DistributorPrice>> genProductPriceMap(String distributorId);

    Map<Long, DistributorPrice> genProductMinPrice(String distributorId);

    boolean addOrUpdate(DistributorPrice resources);

    boolean delOrDoNothing(Integer id);
}
